﻿
using Assets.Scripts.Manager;
using UnityEngine;
using UnityHFSM;
using moai_kun_v1;

public class RunningState : State<State>
{
    private MainPlayer _currentPlayer;

    public override void OnEnter()
    {
        AudioManager.Instance.PlayBGM(GameSystem.Instance.CurrentStageIndex, true);
        //LevelManager.Instance.ResetLevel();
        _currentPlayer = GameObject.FindObjectOfType<MainPlayer>();
        GameSystem.Instance.CurrentPlayer = _currentPlayer;
        _currentPlayer.Reset();
        UIManager.Instance.Show(GameState.Running);
        TimeManager.Instance.StartTime();

       
    }

 
}

